package com.mad.base.system;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;

public final class GameSystem {

	public static Dimension getScreenSize(){
		return Toolkit.getDefaultToolkit().getScreenSize(); 
	}
	
	public static Point centerToScreen(Dimension targetSize){
		return new Point((int)(getScreenSize().getWidth()-targetSize.getWidth())/2,
						   (int)(getScreenSize().getHeight()-targetSize.getHeight())/2);
	}
	
}
